package com.bfly.mall.product.dto;

import com.bfly.mall.product.enums.ProductCommentStatusEnum;
import com.bfly.mall.order.dto.OrderSkuNamesDTO;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 产品评论列表
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/9/15 20:44
 */
public class ProductCommentListDTO implements Serializable {

    private static final long serialVersionUID = 2740147707863743360L;

    private int id;
    private String orderNo;
    private String nickName;
    private String avatarUrl;
    private String content;
    private float score;
    private float sameScore;
    private float serviceScore;
    private float shipScore;
    private boolean reply;
    private Date createDate;
    private int status;
    private List<OrderSkuNamesDTO> skuNames;
    private List<ProductCommentListDTO> children;

    public String getStatusName() {
        ProductCommentStatusEnum statusEnum = ProductCommentStatusEnum.getStatus(getStatus());
        return statusEnum == null ? "" : statusEnum.getName();
    }

    public float getSameScore() {
        return sameScore;
    }

    public void setSameScore(float sameScore) {
        this.sameScore = sameScore;
    }

    public float getServiceScore() {
        return serviceScore;
    }

    public void setServiceScore(float serviceScore) {
        this.serviceScore = serviceScore;
    }

    public float getShipScore() {
        return shipScore;
    }

    public void setShipScore(float shipScore) {
        this.shipScore = shipScore;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<OrderSkuNamesDTO> getSkuNames() {
        return skuNames;
    }

    public void setSkuNames(List<OrderSkuNamesDTO> skuNames) {
        this.skuNames = skuNames;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public boolean isReply() {
        return reply;
    }

    public void setReply(boolean reply) {
        this.reply = reply;
    }

    public List<ProductCommentListDTO> getChildren() {
        return children;
    }

    public void setChildren(List<ProductCommentListDTO> children) {
        this.children = children;
    }
}